import { service2 } from './request'
export const getAllClassic = () => {
  return service2({
    url: '/api/tabs',
    method: 'get'
  }).then(res => {
    const list = res.list.slice(1)
    return list
  })
}

// 根据分类 id 查询该分类下的子分类,id为接收参数
export const getSubClassic = id => service2({
  url: '/api/tab/' + id,
  method: 'get'
}).then(res => res.categories)
